import { RequestData, POST } from '@/utils/request-data';

const requestData = Object.create(RequestData);

requestData.setBaseUrl('erp/dealer/market/product');

// 商品信息
export const marketChildCategory = parentId => requestData.base(`/category/${parentId}`, POST);
export const marketCategory = () => requestData.base('/category', POST);
export const homeData = () => requestData.base('/listCategory', POST);
export const marketPage = params => requestData.base('/page', POST, params);
export const collectCopy = params => requestData.base('/copy', POST, params);
export const marketDetail = id => requestData.base(`/read/${id}`, POST);

export const dropshipping = params => requestData.base('/dropshipping', POST, params);
export const pod = params => requestData.base('/pod', POST, params);
